package com.gs.cd.cloud.start.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;

/**
 * create by hippo  2020/2/13
 *
 * @Description
 * 已经弃用：请使用spring标准请求规范
 * @see org.springframework.web.bind.annotation.RequestBody
 **/
@Data
@Deprecated
public class FrontRequestData<T> {
    @JsonProperty(value = "id")
    private String requestId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date date;

    @JsonProperty(value = "data")
    private T data;

}